package com.xiaoyu.shenyou.shenyouv1.mapper;

import com.xiaoyu.shenyou.shenyouv1.entity.CdkUserEntity;
import com.xiaoyu.shenyou.shenyouv1.entity.UserEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDateTime;
import java.util.List;

@Mapper
public interface UserMapper {
    public List<UserEntity> queryUsers();

    public void insertCDK(@Param("cdk") int cdk, @Param("type") int type, @Param("create_time") LocalDateTime create_time);

    public CdkUserEntity query(@Param("cdk") int cdk);

    public void insertUser(UserEntity user);

    public void deleteCdk(@Param("userId") int userId);

    public UserEntity queryUserById(@Param("userId")int userId);
}

